www.gusucode.com > wxApp PHP版微信小程序CMS系统 v1.0PHP源码程序 > wxApp PHP版微信小程序CMS系统 v1.0/wxAppCMS_v1.0.0/wxAppCMS_v1.0.0/iPHP/core/template/plugins/block.capture.php
<?php /** * template_lite {capture}{/capture} block plugin * * Type: block function * Name: capture * Purpose: removes content and stores it in a variable */ function tpl_block_capture($params, &$content, &$tpl){ extract($params); if (isset($assign)){ $tpl->assign($assign, $content); }else{ $key = 'default'; isset($name) && $key = $name; $tpl->_vars['capture'][$key] = $content; } return false; }